//
//  ZYIndexDeviceItemView.h
//  YiLin
//
//  Created by Zyark on 2018/6/8.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYDevice;
@class ZYIndexDeviceItemView;
@protocol ZYIndexDeviceItemViewDelegate <NSObject>
@optional
/**
 选中
 @param indexDeviceItemView 当前view
 @param device 当前设
 */
-(void)indexDeviceItemView:(ZYIndexDeviceItemView *)indexDeviceItemView didSelectDevice:(ZYDevice *)device;

@end
@interface ZYIndexDeviceItemView : UIView
@property(nonatomic,assign) ZYDeviceType type;
@property(nonatomic,strong) ZYDevice *device;
@property(nonatomic,weak) id<ZYIndexDeviceItemViewDelegate> delegate;
-(instancetype)initWithFrame:(CGRect)frame withDeviceType:(ZYDeviceType)type;
-(void)setupTitle;
@end
